<template>
  <div>
    <div class="prizeTwelve">
      <div class="banner">
        <img src="../../assets/twelve/prizeBanner.png" alt="">
        <div class="prizeList">
          <img src="../../assets/twelve/prizeList.png" alt="">
        </div>
      </div>
      <div class="prizeHistory">
        <div class="jilu">
          <img src="../../assets/twelve/prizeOrder.png" alt="">
        </div>
        <ul class="insideContent" style="max-height: 50vw;overflow: scroll">
          <!--如果中奖记录中的某条获奖记录获奖者是查看者  高改为12vw 背景色改为#fa741e 字体颜色改为fff-->
          <li  v-for="(v,i) in data" :key="i">
            <div v-if="v.is_user == 1" class="checked li" style="display: inline-block;width:80.67vw;padding-top: 2vw;box-sizing: border-box">
              <div class="headBox">
                <img :src="v.head_ico" alt="">
              </div>
              <p class="userName">{{v.accept_name}}</p>
              <p class="goodsName">{{v.name}}</p>
            </div>
            <div v-else style="display: inline-block;width:80.67vw;">
              <div class="headBox">
                <img :src="v.head_ico" alt="">
              </div>
              <p class="userName">{{v.accept_name}}</p>
              <p class="goodsName">{{v.name}}</p>
            </div>
          </li>
        </ul>
      </div>
      <div class="prizeRule">
        <img src="../../assets/twelve/1.png" alt="">
      </div>
      <div class="prizeRule">
        <img src="../../assets/twelve/3.png" alt="">
      </div>
      <div class="prizeRule">
        <img src="../../assets/twelve/4.png" alt="">
      </div>
      <div class="prizeRule">
        <img src="../../assets/twelve/2.png" alt="">
      </div>
      <div class="napinNet">
        <p>活动最终解释权归纳品网所有。<br>
          本公司所有活动均与苹果公司及各大安卓应用市场无关</p>
      </div>
    </div>
  </div>
</template>

<script>
  import request from '../../request/index'
    export default {
        name: "prizeTwelve",
      data(){
          return{
            data:[],
            activity_category_id:1,
          }
      },
      mounted(){
          document.title = '狂欢双十二';
      },
      created(){
          request.winnersInformation(this);
      }
    }
</script>

<style scoped lang="scss">
  .checked{
    height: 12vw;
    background: #fa741e;
    border-radius: 2vw;
    p{
      color: #fff !important;
    }
  }
  .prizeTwelve{
    width: 100vw;
    height: auto;
    background: #f77f56;
    padding-bottom: 3vw;
    .napinNet{
      width: 100vw;
      height: 10vw;
      p{
        font-size: 12px;
        color: #fff;
        text-align: center;
        margin-top: 3vw;
      }
    }
    .prizeRule{
      width: 88vw;
      height: auto;
      margin: 0px auto;
      margin-top: 4vw;
    }
    .prizeHistory{
      width: 88vw;
      height: auto;
      background:rgba(255,255,255,1);
      margin: 0px auto;
      border-radius:15px;
      margin-top: 7.67vw;
      padding-bottom: 4.5vw;
      .insideContent{
        width: 80.67vw;
        height: 83%;
        background: #ffdfca;
        border-radius: 2vw;
        margin: 0px auto;
        margin-top: -3.5vw;
        overflow: hidden;
          li{
            width: 100%;
            height: 10vw;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 3vw;
            .goodsName{
              font-size: 12px;
              color: #666;
              float: right;margin-right: 4vw;
              position: absolute;
              right: 4vw;
              float: left;
              line-height: 7vw;
            }
            .userName{
              font-size: 12px;
              color: #666;
              line-height: 7vw;
              text-indent: 2.76vw;
              float: left;
            }
            .headBox{
              width:7.67vw;
              height: 7.67vw;
              border-radius: 2vw;
              overflow: hidden;
              margin-left: 4vw;
              float: left;
                img{
                  width: 100%;
                }
            }
          }
      }
        .jilu{
          position: relative;
          top: -3.5vw;
          width: 33.67vw;
          height: auto;
          margin: 0px auto;
        }
    }
      .banner{
        width: 100vw;
        height: auto;
      }
    .prizeList{
      width: 88vw;
      height: auto;
      margin: 0px auto;
      margin-top: 2vw;
    }
  }
</style>
